home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / GTDRVRNM.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  406 b   |  14 lines

  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <graphics.h>
  4. main()
  5. {
  6.    int graphdriver=DETECT, graphmode;
  7. /* Detect and initialize the graphics system */
  8.    initgraph(&graphdriver, &graphmode, "c:\\turboc");
  9. /* Display the name of current graphics driver */
  10.    printf("Current graphics driver: %s\n", getdrivername());
  11. /* Wait for a keystroke before exiting */
  12.    getch();
  13.    closegraph();
  14. }